﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wjtour.Common;
using Hjp.FrameWork.Common;

namespace Wjtour.Web.Front
{
    public partial class downloadscreen : BasePage
    {
        private int page = 1;
        private Wjtour.BLL.sitepicture_bll _bll = new BLL.sitepicture_bll();
        protected PaginationData<Wjtour.Domain.dto.sitepicture_picturetype> data = new PaginationData<Wjtour.Domain.dto.sitepicture_picturetype>();

        protected void Page_Load(object sender, EventArgs e)
        {
            page = Utils.StrToInt(Request["page"], 1);
            bindList();
        }

        void bindList()
        {
            data = _bll.GetList("8", page - 1, 12);
            PagnationHtml = GetPageHtml("downloadscreen.aspx", page, data.Pager.TotalPages);
        }
    }
}
